package com.jili.test;

import com.jili.AppConfig;
import com.jili.MySpringAopApplication;

/**
 *  ClassName: Main
 *  Package com.com.jili.test
 *  Description:
 *  @Author: 廖继礼
 *  @Create: 2025/6/5
 *  @Version: v1.0
 *
 */
public class Demo {

    // 启动类
    public static void main(String[] args) throws Exception {
        MySpringAopApplication application = new MySpringAopApplication(AppConfig.class);
        application.startServer(8081);

        // 测试URL:
        // http://localhost:8080/user
        // 控制台输出:
        // [SecurityAspect] Checking user permissions...
        // [LoggingAspect] Before service method execution
        // Executing getUser()
        // [LoggingAspect] After service method. Result: John Doe
    }
}
